﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using E.Web.UI.Page;
using E.Model;
using E.BLL;

namespace E.Web.Teacher.internals.skillgroup
{
    public partial class List : TeacherBasePage
    {

        public IList<SkillGroup> list;
        private CourseBLL bll = new CourseBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnNew_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("/internals/skillgroup/Edit.aspx?act=n&id=-1");
        }

        protected void btnSearch_Click(object sender, ImageClickEventArgs e)
        {
            string skillGroupName = txtSkillGroupName.Text.Trim();
            SkillGroupListModel listModel = bll.GetSkillAllGroupList(skillGroupName);
            list = listModel.List;
        }
    }
}